﻿#include "UuidTest.h"

using namespace SystemTool;

int TestUuid()
{
	Uuid::UniqueId Id = Uuid::GenerateByRandom();

	std::string strId = Uuid::ToString(Id);

	std::cout << strId << std::endl;

	Uuid::UniqueId FinalId;

	if (!Uuid::GenerateByString("41f6ce22-cb6b-4e5c-9f50-e9a77db8af86", FinalId))
	{
		return -1;
	}

	std::string strId2 = Uuid::ToString(FinalId);

	std::cout << strId2 << std::endl;

	if (!Uuid::GenerateByString("41f6ce22cb6b-4e5c-9f50-e9a77db8af86", FinalId))
	{
		return -2;
	}

	return 0;
}
